package cn.bqjr.eily.samples.service.base.impl;

import cn.bqjr.eily.samples.dao.base.UserMapper;
import cn.bqjr.eily.samples.entity.po.User;
import cn.bqjr.eily.samples.service.base.IUserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author shan.he@bqjr.cn
 * @since 2017-05-11
 */
@Service
@Transactional
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    @Transactional(readOnly = true)
    public List<String> selectUserPermList(Long userId) {
        return userMapper.selectUserPermList(userId);
    }
}